package what.the.fun.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import what.the.fun.domain.Campaign;

public class CampaignRowMapper implements RowMapper<Campaign>{

	@Override
	public Campaign mapRow(ResultSet arg0, int arg1) throws SQLException {
		CampaignExtractor campExtractor = new CampaignExtractor();
		return campExtractor.extractData(arg0);
	}
	
}
